import request from '@/utils/request'

// 查询不良品分析作业列表
export function listBadAnalyse(query) {
  return request({
    url: '/quality/badProdAnalyse/list',
    method: 'get',
    params: query
  })
}

// 查询不良品分析子项
export function listBadAnalyseChild(moeId) {
  return request({
    url: '/pad/pad/getCurrentOrderBadProd/' + moeId,
    method: 'get'
  })
}

// 查询不良品统计分析
export function listBadAnalyseReport(query) {
  return request({
    url: '/quality/badProdAnalyse/report',
    method: 'get',
    params: query
  })
}

// 导出不良品分析作业
export function exportBadAnalyse(query) {
  return request({
    url: '/quality/badProdAnalyse/export',
    method: 'get',
    params: query
  })
}

// 导出不良品统计分析
export function exportBadAnalyseReport(query) {
  return request({
    url: '/quality/badProdAnalyse/exportReport',
    method: 'get',
    params: query
  })
}
